package com.xiongwei.flyweight;

public class ConcreteWebsite extends Website{
    //内部状态
    private String type;

    public ConcreteWebsite(String type){
        this.type = type;
    }

    @Override
    public void use(User user) {
        //user为外部状态
        System.out.println("网站发布形式：" + type + "，使用者是：" + user.getName());
    }
}
